<div id="colOne">
    <%= render :partial => "menu" %>
</div>
<div id="colTwo">

<h1>Edytuj</h1>

<%= start_form_tag :action => 'update', :id => @group %>
  
  <% if @session['user'].role == 'prowadzacy'%>
  	<%= render :partial => 'form' %>
  <% else %>
  	<%= render :partial => 'form2' %>
  <% end %>
  <%= submit_tag 'Edit' %>
<%= end_form_tag %>

<%= link_to 'Show', :action => 'show', :id => @group %> |
	<% if @session['user'].role == 'prowadzacy'%>
		<%= link_to 'Back', :action => 'list_user' %>
	<% else %>	
		<%= link_to 'Back', :action => 'list' %>
	<% end %>

</div>